﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
namespace DAO
{
    public class HistoryMemberDAO
    {
        public HISTORYMEMBER[] getHistoryMemberByID(int id)
        {
            
            DataClassesNHOMMUADataContext db = new DataClassesNHOMMUADataContext();
            var products = from v in db.HISTORYMEMBERs
                           where v.IDMEMBER.Equals(id)
                           select v;
                //db.usp_SelectHistoryMemberByID(id);

            return products.ToArray<HISTORYMEMBER>();
        }
    }
}
